package com.tsmask.bound;

import java.awt.Image;

import javax.swing.ImageIcon;
import javax.swing.JLabel;

/**
 * 图片品牌栏组件
 * 
 * @author TsMask
 *
 */
public class PictureBound {

	/**
	 * 应用阳光图片组件
	 * @param state 状态
	 * @return 标签组件
	 */
	public JLabel state(String state) {
		JLabel jLabel = new JLabel();
		jLabel.setBounds(120, 0, 500, 340);
		ImageIcon image = new ImageIcon("resource\\state\\"+state+".png");
		image.setImage(image.getImage().getScaledInstance(500, 340, Image.SCALE_DEFAULT));
		jLabel.setIcon(image);
		return jLabel;
	}

	/**
	 * 应用logo组件
	 * 
	 * @return 标签组件
	 */
	public JLabel logo() {
		JLabel jLabel = new JLabel();
		jLabel.setBounds(585, 72, 56, 56);
		ImageIcon image = new ImageIcon("resource\\logo.png");
		image.setImage(image.getImage().getScaledInstance(56, 56, Image.SCALE_DEFAULT));
		jLabel.setIcon(image);
		return jLabel;
	}

	/**
	 * 应用品牌组件
	 * 
	 * @return 标签组件
	 */
	public JLabel brand() {
		JLabel jLabel = new JLabel();
		jLabel.setBounds(450, 142, 256, 64);
		ImageIcon image = new ImageIcon("resource\\brand.png");
		image.setImage(image.getImage().getScaledInstance(256, 64, Image.SCALE_DEFAULT));
		jLabel.setIcon(image);
		return jLabel;
	}
}
